package com.xing.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Bradish7Y on 2017/8/21.
 * home page
 */
@Controller
public class IndexController {
    public static final Logger log = LoggerFactory.getLogger(IndexController.class);

    @RequestMapping({"/", "/index"})
    public String index(Model model, HttpServletRequest req) {

        model.addAttribute("msg", "hello boot");
        return "index";
    }
}
